package com.knowswift.issues.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.knowswift.common.bean.issue.po.Authorize;
import com.knowswift.common.bean.project.po.Project;
import com.knowswift.common.bean.issue.vo.ModuleDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author CTL
 * @create 2025-07-23 11:51
 */
@Mapper
public interface AuthorizeMapper extends BaseMapper<Authorize> {
    List<ModuleDto> getModuleByCustomerId(String customerId);

    List<Project> getCustomerModuleProject(String customerId, String moduleId);

    void deleteTermiteAuthorizeByCustomerId(String customerId);

    List<ModuleDto> getModuleByUserId(Long userId);

    List<Project> getUserModuleProject(Long userId, String moduleId);

    void deleteTermiteAuthorizeByUserId(Long userId);
}
